package Main.Latex;

public class Leaf extends Component{
    @Override
    public String getLexString() {
        StringBuilder stringBuilder = new StringBuilder();

        //前缀
        for(String prefix : preContents){
            stringBuilder.append(prefix);
        }

        //后缀
        for (String sufContents : sufContents){
            stringBuilder.append(sufContents);
        }

        return stringBuilder.toString();
    }
}
